Image sensing apparatus

ABSTRACT

This invention makes it difficult to analyze key data necessary to generate authentication data of image data. In this invention, when a user turns on the power supply of an image sensing apparatus  10 , key data necessary to generate authentication data is generated (step S 201 ). When the user turns off the power supply of the image sensing apparatus  10 , the key data is erased (step S 204 ). Since a period during which the image sensing apparatus  10  holds the key data can be limited to “a period during which the power supply of the image sensing apparatus  10  is ON”, analysis of the key data can be made difficult.

FIELD OF THE INVENTION

[0001] The present invention relates to an image sensing apparatus for generating image data and authentication data of the image data.

BACKGROUND OF THE INVENTION

[0002] Presently, in order to authenticate the presence/absence of alteration of image data generated by a digital camera, an image authentication system by which authentication data obtained from image data is added to the image data is proposed.

[0003] In this system, key data necessary to generate authentication data must be safely managed. If this key data leaks, unauthorized authentication data can be generated. This may make it impossible to accurately authenticate the presence/absence of alteration of image data.

SUMMARY OF THE INVENTION

[0004] The present invention has been made to solve the above problem, and has as its object to make it difficult to analyze key data necessary to generate authentication data.

[0005] One image sensing apparatus of the present invention is an image sensing apparatus which generates image data and authentication data necessary for a process of authenticating whether the image data is altered, wherein key data necessary to generate the authentication data is erased in accordance with a predetermined condition.

[0006] Another image sensing apparatus of the present invention is an image sensing apparatus which generates image data and authentication data necessary for a process of authenticating whether the image data is altered, wherein generation of key data necessary to generate the authentication data is inhibited when a mode in which a set value in the image sensing apparatus is adjusted is to be turned on.

[0007] Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008]FIG. 1 is a block diagram showing the main parts of an image sensing apparatus according to an embodiment;

[0009]FIG. 2 is a flow chart for explaining a first key data management method;

[0010]FIG. 3 is a flow chart for explaining a second key data management method;

[0011]FIG. 4 is a flow chart for explaining a third key data management method;

[0012]FIG. 5 is a flow chart for explaining a fourth key data management method;

[0013]FIG. 6 is a flow chart for explaining a fifth key data management method;

[0014]FIG. 7 is a view showing periods during which key data is held; and

[0015]FIG. 8 is a view showing the file format of an image file having authentication data.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0016] An embodiment of the present invention will be described below with reference to FIGS. 1 to 7.

[0017]FIG. 1 is a block diagram showing the main components of an image sensing apparatus 10 according to this embodiment. The image sensing apparatus 10 is an apparatus (e.g., a digital camera, a scanner, a copying machine, or a portable information terminal with a digital camera) having a function of sensing an image by an image sensor. In this embodiment, the image sensing apparatus 10 will be explained by taking a digital camera as an example in order to simplify the explanation.

[0018] Referring to FIG. 1, an image sensing unit 101 generates image data of an image sensed by an image sensor. An image sensing controller 102 controls the operation of the image sensing unit 101 in accordance with instructions from a main controller 110. The image sensing controller 102 provides the main controller 110 with information pertaining to the image data generated by the image sensing unit 101. An image processor 103 adjusts the image quality of the image data obtained from the image sensing unit 101 in accordance with a plurality of preset image adjusting parameters, and compresses the adjusted image data in accordance with a predetermined image compressing method. A memory 104 stores various data.

[0019] A memory interface 105 writes an image file designated by the main controller 110 in a removable memory 106, and reads out an image file designated by the main controller 110 from the removable memory 106. The removable memory 106 can store a plurality of image files.

[0020] A network interface 107 transmits an image file designated by the main controller 110 to an external apparatus 108. The external apparatus 108 is an apparatus in which an application program for remotely controlling the image sensing apparatus 10, an application program for adjusting the image quality of image data in accordance with a plurality of image adjusting parameters, and the like are installed.

[0021] A display unit 109 displays reduced image data of an image sensed by the image sensing unit 101, reduced image data of an image file read out from the removable memory 106, and the like. The display unit 109 also displays information pertaining to a selected image.

[0022] The main controller 110 controls various functions of the image sensing apparatus 10. Also, the main controller 110 executes an authentication data generation process, key data management process, image file generation process, and the like. The authentication data generation process is to generate authentication data of image data obtained from the image processor 103, by using the hash value of the image data and key data (equivalent to a secret key in a secret key cryptographic system or a private key in a public key cryptographic system). The authentication data is necessary for a process of authenticating whether image data is altered. The key data management process is to manage generation and erasure of key data necessary to generate authentication data. The image file generation process is to generate an image file containing image data and its authentication data.

[0023] A memory 112 stores data A as a base of key data necessary to generate authentication data. A memory 111 also stores data B as a base of key data necessary to generate authentication data. The memories 111 and 112 are distributed in the image sensing apparatus 10. The memories 111 and 112 are nonvolatile memories (e.g., ROMs if they can be fixed memories, and EEPROMs or fresh memories if a user is to be allowed to freely set them). The data A and B are written when the apparatus of the embodiment is manufactured, but they can also be appropriately changed as described above.

[0024] A power switch 113 turns on or off the power supply of the image sensing apparatus 10. A shutter button 114 designates the start of image sensing. An alteration preventing switch 115 turns on or off an alteration preventing function as one function of the image sensing apparatus 10. This alteration preventing function generates authentication data from image data generated by the image sensing unit 101. Authentication data is necessary for a process of authenticating whether image data is altered. The alteration preventing function can be made valid (turned on) or invalid (turned off) during a period in which the power supply of the image sensing apparatus 10 is ON.

[0025]FIG. 8 shows the file format of an image file stored in the removable memory 106. An image file is made up of a header, body, and footer. However, an image which is sensed while the alteration preventing function is invalidated has no authentication data, or has no authentication data storage area in the footer. The header contains the file name, camera ID information for specifying a digital camera used in image sensing, and a thumbnail image. “Other information” includes information such as the image size (the numbers of pixels in the horizontal and vertical directions), the start position and size of the body, and the start position and size of the footer. The body stores compression-coded image data (e.g., JPEG encoded image data). “Marker” in the footer is information for identifying the type of authentication data. By checking this marker, therefore, it is possible to determine whether authentication data is MAC data or digital signature data. The MAC data is authentication data generated by using the hash value of image data and key data equivalent to a secret key in a secret key cryptographic system. The digital signature data is authentication data generated by using the hash value of image data and key data equivalent to a private key in a public key cryptographic system. Note that the marker and authentication data may also be stored in the header, instead of the footer.

[0026] The image sensing apparatus 10 according to this embodiment manages key data necessary to generate authentication data in accordance with one of first to fourth key data management methods and a fifth key data management method. The first to fifth key data management methods will be explained below.

[0027] (1) First Key Data Management Method

[0028]FIG. 2 is a flow chart for explaining the first key data management method.

[0029] Step S201: The main controller 110 determines whether the user has turned on the power supply of the image sensing apparatus 10. If the power supply is turned on, the flow advances to step S202.

[0030] Step S202: The main controller 110 generates key data necessary to generate authentication data, from the data A and B distributed in the image sensing apparatus 10. Note that the key data can be the same whenever it is generated, or can be changed whenever it is generated a plurality of number of times.

[0031] Step S203: The main controller 110 determines whether the user has turned off the power supply of the image sensing apparatus 10. If the power supply is turned off, the flow advances to step S204.

[0032] Step S204: The main controller 110 erases the key data generated in step S202, in order to prevent a leak of the key data.

[0033] In the first key data management method as described above, a period during which the image sensing apparatus 10 holds key data can be limited to “a period (a period A in FIG. 7) during which the power supply of the image sensing apparatus 10 is ON”. This makes analysis of the key data difficult. In practice, image sensing, storage, and the like are interposed between st ps S202 and S203. However, these processes are omitted from FIG. 2 in order to clearly show the key data holding period.

[0034] (2) Second Key Data Management Method

[0035]FIG. 3 is a flow chart for explaining the second key data management method.

[0036] Step S301: The main controller 110 determines whether the user has turned on the alteration preventing function. If this function is turned on, the flow advances to step S302.

[0037] Step S302: The main controller 110 generates key data necessary to generate authentication data, from the data A and B distributed in the image sensing apparatus 10. Note that the key data can be the same whenever it is generated, or can be changed whenever it is generated a plurality of number of times.

[0038] Step S303: The main controller 110 determines whether the user has turned off the alteration preventing function. If the function is turned off, the flow advances to step S304.

[0039] Step S304: The main controller 110 erases the key data generated in step S302, in order to prevent a leak of the key data.

[0040] In the second key data management method as described above, a period during which the image sensing apparatus 10 holds key data can be limited to “a period (a period B in FIG. 7) during which the alteration preventing function is ON”. This makes analysis of the key data difficult.

[0041] In addition, as shown in FIG. 7, the period during which the image sensing apparatus 10 holds key data in the second key data management method can be made shorter than that in the first key data management method. This makes analysis of the key data more difficult than in the first key data management method.

[0042] (3) Third Key Data Management Method

[0043]FIG. 4 is a flow chart for explaining the third key data management method.

[0044] Step S401: The main controller 110 determines whether image data of a sensed image of the first frame is generated. If this image data is generated, the flow advances to step S402.

[0045] Step S402: The main controller 110 generates key data necessary to generate authentication data, from the data A and B distributed in the image sensing apparatus 10. Note that the key data can be the same whenever it is generated, or can be changed whenever it is generated a plurality of number of times.

[0046] Step S403: The main controller 110 determines whether an image file containing image data of a sensed image of the Nth (2≦N≦ the number of frames which can be continuously subjected to image sensing) frame and authentication data of the image data is saved in the removable memory 106. If this image file is saved, the flow advances to step S404.

[0047] Step S404: The main controller 110 erases the key data generated in step S402, in order to prevent a leak of the key data.

[0048] In the third key data management method as described above, a period during which the image sensing apparatus 10 holds key data can be limited to “a period (a period C in FIG. 7) from the generation timing of image data of a sensed image of the first frame to the timing at which an image file containing image data of a sensed image of the Nth frame and authentication data of the image data is saved in the removable memory 106”. This makes analysis of the key data difficult.

[0049] In addition, the period during which the image sensing apparatus 10 holds key data in the third key data management method can be made shorter than those in the first and second key data management methods. This makes analysis of the key data more difficult than in the first and second key data management methods.

[0050] (4) Fourth Key Data Management Method

[0051]FIG. 5 is a flow chart for explaining the fourth key data management method.

[0052] Step S501: The main controller 110 determines whether image data of one sensed image is generated. If this image data is generated, the flow advances to step S502.

[0053] Step S502: The main controller 110 generates key data necessary to generate authentication data, from the data A and B distributed in the image sensing apparatus 10. Note that the key data can be the same whenever it is generated, or can be changed whenever it is generated a plurality of number of times.

[0054] Step S503: The main controller 110 determines whether an image file containing the image data of one sensed image and authentication data of the image data is saved in the removable memory 106. If this image file is saved, the flow advances to step S504.

[0055] Step S504: The main controller 110 erases the key data generated in step S502, in order to prevent a leak of the key data.

[0056] In the fourth key data management method as described above, a period during which the image sensing apparatus 10 holds key data can be limited to “a period (a period D in FIG. 7) from the generation timing of image data of one sensed image to the timing at which an image file containing the image data of the sensed image and authentication data of the image data is saved in the removable memory 106”. This makes analysis of the key data difficult.

[0057] In addition, the period during which the image sensing apparatus 10 holds key data in the fourth key date management method can be made shorter than those in the first, second, and third key data management methods. This makes analysis of the key data more difficult than in the first, second, and third key data management methods.

[0058] (5) Fifth Key Data Management Method

[0059]FIG. 6 is a flow chart for explaining the fifth key data management method.

[0060] Step S601: The main controller 110 determines whether to turn on an adjustment mode. The adjustment mode is an operation mode in which the external apparatus 108 adjusts a plurality of image adjusting parameters in the image sensing apparatus 10. The image adjusting parameters are parameters for adjusting the image quality of image data of a sensed image. If the adjustment mode is to be turned on, the flow advances to step S602.

[0061] Step S602: The main controller 110 starts the adjustment mode and inhibits generation of key data. If key data is already generated at this point (e.g., if the fifth key data management method is combined with the first key data management method explained previously), this key data is erased before the adjustment mode is started. A leak of key data can be prevented by thus inhibiting generation of key data and erasing key data if the key data already exists.

[0062] Step S603: The image sensing apparatus 10 adjusts the image adjusting parameters in accordance with an operation from the external apparatus 108.

[0063] Step S604: The main controller 110 determines whether to turn off the adjustment mode. If the adjustment mode is to be turned off, the flow advances to step S605.

[0064] Step S605: The main controller 110 terminates the adjustment mode and cancels the inhibition of key data generation. However, if the fifth key data management method is combined with the above-mentioned first key data management method, key data is generated after the inhibition of key data generation is canceled.

[0065] In the fifth key data management method as described above, generation of key data can be inhibited during a period in which the operation mode of the image sensing apparatus is the adjustment mode. This makes analysis of the key data difficult.

[0066] In the present invention, analysis of the key data necessary to generate authentication data of image data can be made difficult.

[0067] The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, to apprise the public of the scope of the present invention, the following claims are made. 

What is claimed is:
 1. An image sensing apparatus which generates image data and authentication data necessary for a process of authenticating whether the image data is altered, wherein key data necessary to generate the authentication data is erased in accordance with a predetermined condition.
 2. The apparatus according to claim 1, wherein the key data is erased when a user turns off a power supply of the image sensing apparatus.
 3. The apparatus according to claim 2, wherein the key data is generated when a user turns on the power supply of the image sensing apparatus.
 4. The apparatus according to claim 1, wherein the key data is erased when a user turns off a function of generating the authentication data.
 5. The apparatus according to claim 4, wherein the key data is generated when a user turns on the function of generating the authentication data.
 6. The apparatus according to claim 1, wherein the key data is erased when a plurality of image data are saved.
 7. The apparatus according to claim 6, wherein the key data is generated when first image data is generated.
 8. The apparatus according to claim 1, wherein the key data is erased when one image data is saved.
 9. The apparatus according to claim 8, wherein the key data is generated when one image data is generated.
 10. An image sensing apparatus which generates image data and authentication data necessary for a process of authenticating whether the image data is altered, wherein generation of key data necessary to generate the authentication data is inhibited when a mode in which a set value in said image sensing apparatus is adjusted is to be turned on.
 11. An image sensing apparatus having image sensing unit, comprising: storage unit for storing image data obtained by image sensing by said image sensing unit in a predetermined storage medium; key data generating unit for generating key data necessary to generate authentication data to be added to image data to be stored, on the basis of prestored original data; and control unit for controlling an existing period of the key data generated by said key data generating unit.
 12. An image sensing apparatus which compression-codes an image sensed by image sensing unit, and stores the compression-coded image in a predetermined detachable storage medium, and which can communicate with an external apparatus, comprising: authentication data adding unit for adding, to sens d image data, authentication data for authenticating whether the sensed image data is altered, when the sensed image data is stored in said storage medium; and setting unit for setting an existing period of key data necessary to generate the authentication data.
 13. The apparatus according to claim 12, wherein said setting unit erases the key data during a period in which said image sensing apparatus can communicate with said external apparatus.
 14. The apparatus according to claim 13, wherein said setting unit generates the key data when a power supply of said image sensing apparatus is turned on, and erases the key data when the power supply is turned off.
 15. The apparatus according to claim 13, wherein said setting unit generates the key data when a user makes a function of generating the authentication data valid, and erases the key data when a user invalidates the function.
 16. The apparatus according to claim 13, wherein said setting unit generates the key data immediately before one image data is saved, and erases the key data when the saving is completed.
 17. The apparatus according to claim 13, wherein said setting unit generates the key data immediately before first image data of a plurality of image data is saved, and rases the key data when the saving of the first image is completed. 